<template>
    <div>
        <button @click="setSon">修改</button>
        <zi :params="ziRef" ref="ziDom"></zi>
    </div>
</template>
<script setup>
import zi from "./zi.vue"
import { ref } from "vue";

const ziRef = ref("父组件")
const ziDom = ref(null)
function setSon() {
    ziDom.value.testRef = new Date().getTime()
}
</script>